package com.custom.lessonstudy.di;


import com.custom.lessonstudy.net.BaseHttpResponse;
import com.custom.lessonstudy.net.HttpUrl;
import com.custom.lessonstudy.ui.bean.SmsBean;

import java.util.HashMap;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by luo on 2019/8/8.
 */

public interface ApiService {

    /**
     * 登陆接口
     *
     * @return 返回数据
     */
    @POST(HttpUrl.PINGURL)
    Observable<ResponseBody> login();
    //Observable<BaseHttpResponse<SmsVerifyBean>> sendVerifyMsg(@Query("mobile")String mobile, @Query("area_code")String area_code);


    /**
     * 发送短信接口
     *
     * @return 返回数据
     */
    @POST(HttpUrl.SEND_MSG)
    Observable<BaseHttpResponse<SmsBean>> sendMsg(@Body HashMap map);


}

